import QtQuick 1.1
import qtproxy 1.0

Rectangle {
    id: canvas
    width: 480
    height: 480
    clip: true

    Image {
        id: background
        source: "images/stick2.jpg"
        anchors.fill: parent
    }

    Row {
        spacing: 5
        x:0
        y:0

        Button { text: "B"; onClicked: text.bold() }
        Button { text: "I"; onClicked: text.italic() }
        Button { text: "+"; onClicked: text.weightInc() }
        Button { text: "-"; onClicked: text.weightDec() }
    }

    QTextEdit {
        id: text
        anchors.fill: parent
        anchors.margins: 60
    }

    Rectangle {
        anchors.top: parent.top
        anchors.right: parent.right
        height: 16
        width: 16
        color: "black"
        MouseArea {
            anchors.fill: parent
            drag.target: canvas
            drag.axis: Drag.XandYAxis
        }
    }



}
